<?php
class Install_Model_Installer {
	
	protected $_errors = array();
	
	protected $_steps;

	protected function _getSession() {
		return Mag::singleton('Install_Model_Session');
	}
	
	public function addData(array $data) {
		return $this->_getSession()->add($data);
	}
	
	public function getData($name=null) {
		return $this->_getSession()->get($name);
	}

	public function run() {
		// create config file
		// create htaccess file
		// test connection
		// create config table
		$this->_getSession()->clear();
		return false;
	}
	
	public function getError() {
		$result = $this->_errors;
		$this->_errors = array();
		return $result;
	}
}